﻿using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZhonTai.Admin.Core.Entities;
using ZhonTai.Industry.Contracts.Core.Enums;

namespace ZhonTai.Industry.Domain.Offset
{
    /// <summary>
    /// 数据块偏移量
    /// </summary>
    /// <remarks>数据块偏移量</remarks>
    [Table(Name = "cfg_plc_offset")]
    public class PLCOffsetEntity : EntityBase
    {
        /// <summary>
        /// 偏移量
        /// </summary>
        /// <remarks>偏移量</remarks>
        [Column(Precision = 64)]
        public double ByteOffset { get; set; }

        /// <summary>
        /// 数据类型
        /// </summary>
        /// <remarks>数据类型</remarks>
        [Column(StringLength = 64)]
        public PLCDataTypeEnum DataType { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        /// <remarks>排序</remarks>
        [Column(Precision = 10)]
        public int Sort { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        /// <remarks>描述</remarks>
        [Column(StringLength = 64)]
        public string Description { get; set; }
    }
}